package com.hyl;

import com.hyl.Air.Aircraft;
import com.hyl.Sea.Ship;
import com.hyl.person.Person;

public class Main {

    public static void main(String[] args) {
        // write your code here
        Person person1 = new Person("1000", "Kiki", "女");
        Aircraft aircraft1 = new Aircraft("0001");
        person1.driveMethod(aircraft1);

        System.out.println("-------------------");

        Person person2 = new Person("1001", "Jeo", "男");
        Ship ship = new Ship("0002");
        person2.driveMethod(ship);
    }
}
